{:hook('body_start')}
<div class="top-bar"><a href="http://chanyouji.com/"><img alt="蝉游记" class="top-logo" id="site-logo"
														  src="__TMPL__Public/index_files/top-logo-5d87075612abd4e51484015cfd932181.png"></a>
	<script type="text/javascript">if (window.devicePixelRatio && window.devicePixelRatio > 1) $('#site-logo').attr('src', 'http://cdn.chanyouji.cn/assets/top-logo@2x-afb1f2d6648727386edf4cfdc6f55e6e.png')</script>
	<div class="top-search">
		<form action="{:U('portalarch/index')}"  method="post">
			<input name="keyword" placeholder="搜索" type="text">
			<button type="submit" hidefocus="true"><tton>
		</form>
		<script type="text/javascript">topSearchBar()</script>
	</div>
	<ul class="menu">
		<li><a href="http://chanyouji.com/home/app">手机应用</a><>
		<li><a href="http://chanyouji.com/home/app#inspiration">氢气球旅行</a><>
	</ul>
	<php>

		if(!sp_is_user_login()){
	</php>

	<div class="login" id="top-bar-login">
		<a href="{:U('user/login/index')}">登录</a>
		<a href="{:leuu('user/register/index')}">注册</a>
	</div>
	<?php
		}else{
	?>
	<div class="profile top-menu" id="top-bar-profile">
		<div class="user js-n-offset"><a href="http://chanyouji.com/users/733916">
			<img alt="40" src="iii_files/40.jpg">
		</a>
			<i class="n-count hidden" id="new-notice" title="新消息">0</i><i class="ico-arr"></i><i class="sl"></i>
		</div>
		<ul style="display: block">
			<li class="write"><a href="{:U('portal/index/iii')}">写游记</a><>
			<li class="notice"><a href="http://chanyouji.com/trips/new">消息中心</a><>
			<li class="user-profile"><a href="http://chanyouji.com/users/733916/edit">个人资料</a><>
			<li class="settings"><a href="http://chanyouji.com/users/733916/settings">游记设置</a><>
			<li class="feedback"><a href="http://chanyouji.com/feedbacks/new" id="menu-feedback">反馈</a><>
			<li class="logout"><a href="{:U('user/index/logout')}" data-method="delete"
								  rel="nofollow">退出</a><>
		</ul>
	</div>
	<?php
	}
	?>
</div>